import { http } from "@/utils/http";
import { baseUrlApi } from "./utils";

/** 话术分类列表 */
export const words_cate_list = (data?: object) => {
  return http.request<any>("post", baseUrlApi("words/words_cate_list"), { data });
};

/** 话术分类添加 */
export const words_cate_add = (data?: object) => {
  return http.request<any>("post", baseUrlApi("words/words_cate_add"), { data });
};

/** 话术分类修改 */
export const words_cate_save = (data?: object) => {
  return http.request<any>("post", baseUrlApi("words/words_cate_save"), { data });
};

/** 话术分类删除 */
export const words_cate_del = (data?: object) => {
  return http.request<any>("post", baseUrlApi("words/words_cate_del"), { data });
};

/** 话术列表 */
export const words_list = (data?: object) => {
  return http.request<any>("post", baseUrlApi("words/words_list"), { data });
};

/** 话术添加 */
export const words_add = (data?: object) => {
  return http.request<any>("post", baseUrlApi("words/words_add"), { data });
};

/** 话术修改 */
export const words_save = (data?: object) => {
  return http.request<any>("post", baseUrlApi("words/words_save"), { data });
};

/** 话术删除 */
export const words_del = (data?: object) => {
  return http.request<any>("post", baseUrlApi("words/words_del"), { data });
};